package com.mtconnect.model;

import java.io.Serializable;
import java.math.BigDecimal;
import java.sql.Timestamp;

/**
 * Created by Administrator on 2017/8/3.
 * sample 表结构对象
 */
public class Sample implements Serializable {
    private String name;
    private Long sequence;
    private Timestamp timestamp;
    private String dataItemID;
    private String subType;
    private String sampleRate;
    private String statistic;
    private BigDecimal duration;
    private BigDecimal sampleCount;
    private String value;

    public Sample() {
        this.duration = new BigDecimal("0");
        this.sampleCount = duration;
    }

    @Override
    public String toString() {
        return "Sample{" +
                "name='" + name + '\'' +
                ", sequence=" + sequence +
                ", timestamp=" + timestamp +
                ", dataItemID='" + dataItemID + '\'' +
                ", subTypeBySample='" + subType + '\'' +
                ", sampleRate=" + sampleRate +
                ", statistic='" + statistic + '\'' +
                ", duration=" + duration +
                ", sampleCount=" + sampleCount +
                ", value='" + value + '\'' +
                '}';
    }

    //==============get and set ======================
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Long getSequence() {
        return sequence;
    }

    public void setSequence(Long sequence) {
        this.sequence = sequence;
    }

    public Timestamp getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(Timestamp timestamp) {
        this.timestamp = timestamp;
    }

    public String getDataItemID() {
        return dataItemID;
    }

    public void setDataItemID(String dataItemID) {
        this.dataItemID = dataItemID;
    }

    public String getSubType() {
        return subType;
    }

    public void setSubType(String subType) {
        this.subType = subType;
    }

    public String getSampleRate() {
        return sampleRate;
    }

    public void setSampleRate(String sampleRate) {
        this.sampleRate = sampleRate;
    }

    public String getStatistic() {
        return statistic;
    }

    public void setStatistic(String statistic) {
        this.statistic = statistic;
    }

    public BigDecimal getDuration() {
        return duration;
    }

    public void setDuration(BigDecimal duration) {
        this.duration = duration;
    }

    public BigDecimal getSampleCount() {
        return sampleCount;
    }

    public void setSampleCount(BigDecimal sampleCount) {
        this.sampleCount = sampleCount;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }
}
